<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Open SCA: frameworks/libCF_Utils/include/debug.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.onetek.net"><img alt="Logo" src="openscaLogo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Open SCA
   &#160;<span id="projectnumber">Version 0.6.0</span>
   </div>
   <div id="projectbrief">Open SCA</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('debug_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">debug.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="debug_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***************************************************************************/</span><span class="comment">/****************************************************************************/</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef _DEBUG_H</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define _DEBUG_H</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;sys/types.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;errno.h&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_boost__utils_8h.html">Boost_utils.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="debug_8h.html#ae348bf1e5e499bb2f1bdc8f47ed63dea">   41</a></span>&#160;<span class="preprocessor">#define DEBUG_LEVEL_ID    (&quot;debugLevelId&quot;)</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#if 0</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#define QT_NO_DEBUG_OUTPUT      //shield debug output</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#define QT_NO_WARNING_OUTPUT    //shield warning output</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keywordtype">void</span> </div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<a class="code" href="debug_8h.html#a7144f6baa53386049430d752414f1482">set_debug_level</a>(</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordtype">int</span> level);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="debug_8h.html#a3852adc5ca2dc7a263868e1ce70d0967">   52</a></span>&#160;<span class="preprocessor">#define  FUN_DEBUG_EN        0</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="debug_8h.html#a78e9f582b8c1b0f29d20e8df639aec76">   53</a></span>&#160;<span class="preprocessor">#define  FUN_WARNING_EN      0</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="debug_8h.html#a4036580c4cea6cf404647d18f2fe3452">   55</a></span>&#160;<span class="preprocessor">#define DEBUG(level, title, debuginfo) \</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">        if(level &lt;= getDebugLevel(DEBUG_LEVEL_ID))\</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">                std::cout &lt;&lt; &quot;PID:&quot; &lt;&lt; getpid() &lt;&lt; &quot;  &quot; &lt;&lt; #title &lt;&lt; &quot;:&quot; &lt;&lt; debuginfo &lt;&lt; std::endl;</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="debug_8h.html#a740e831b250f2e7736e736851552ff2f">   59</a></span>&#160;<span class="preprocessor">#define DEBUG_V2(level, title, debuginfo) \</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">        if(level &lt;= openscaDebugLevelV2)\</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">                std::cout &lt;&lt; #title &lt;&lt; &quot;:&quot; &lt;&lt; debuginfo &lt;&lt; std::endl;</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#if FUN_DEBUG_EN</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#define FUN_ENTER_DEBUG()       qDebug()&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                                                                        <span class="stringliteral">&quot;entering...&quot;</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#define FUN_LEAVE_DEBUG()       qDebug()&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                                                                        <span class="stringliteral">&quot;leave...&quot;</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#define FUN_APPEND_DEBUG()      qDebug()&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot;</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="debug_8h.html#a9d2ab3f6099a46d6f26644e10c0f60d7">   72</a></span>&#160;<span class="preprocessor">#define FUN_ENTER_DEBUG()       std::cout&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;&quot;entering...&quot;&lt;&lt; std::endl;</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="debug_8h.html#af8030bc9c335c9dce34a65fddeceaab6">   74</a></span>&#160;<span class="preprocessor">#define FUN_LEAVE_DEBUG()       std::cout&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;&quot;leave...&quot;&lt;&lt; std::endl;</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="debug_8h.html#acb00790438054b22a43aa550e86301a8">   76</a></span>&#160;<span class="preprocessor">#define FUN_APPEND_DEBUG()      std::cout&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot;</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#if FUN_WARNING_EN</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#define FUN_ENTER_WARNING()     qWarning()&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                                                                        <span class="stringliteral">&quot;entering...&quot;</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#define FUN_LEAVE_WARNING()     qWarning()&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                                                                        <span class="stringliteral">&quot;leave...&quot;</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#define FUN_APPEND_WARNING()    qWarning()&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot;</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="debug_8h.html#a9fe9507e8ff82ee3137475e3c8f6d161">   88</a></span>&#160;<span class="preprocessor">#define FUN_ENTER_WARNING()     std::cout&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;&quot;entering...&quot;&lt;&lt;std::endl;</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="debug_8h.html#a6970a714c19084477d54c7c33114c08f">   90</a></span>&#160;<span class="preprocessor">#define FUN_LEAVE_WARNING()     std::cout&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot; &lt;&lt;&quot;leave...&quot;&lt;&lt;std::endl;</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                                                                        </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="debug_8h.html#a07fc1d162f5cd4fdd94a523017903a03">   92</a></span>&#160;<span class="preprocessor">#define FUN_APPEND_WARNING()    std::cout&lt;&lt;&quot;[&quot;&lt;&lt;__FUNCTION__&lt;&lt;__LINE__&lt;&lt;&quot;]&quot;</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif  //OPENSCA_DEBUG_H</span></div><div class="ttc" id="debug_8h_html_a7144f6baa53386049430d752414f1482"><div class="ttname"><a href="debug_8h.html#a7144f6baa53386049430d752414f1482">set_debug_level</a></div><div class="ttdeci">void set_debug_level(int level)</div><div class="ttdef"><b>Definition:</b> <a href="debug_8cpp_source.html#l00025">debug.cpp:25</a></div></div>
<div class="ttc" id="_boost__utils_8h_html"><div class="ttname"><a href="_boost__utils_8h.html">Boost_utils.h</a></div><div class="ttdoc">:  </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_27e7b6da28153e106312658788f622d3.html">frameworks</a></li><li class="navelem"><a class="el" href="dir_ecac01cf0516f87ea4205d3d96f45c96.html">libCF_Utils</a></li><li class="navelem"><a class="el" href="dir_1eb7b37d99ac6e133eaf5304174978a8.html">include</a></li><li class="navelem"><a class="el" href="debug_8h.html">debug.h</a></li>
    <li class="footer">Generated on Fri Jul 12 2019 14:31:53 for
    <a href="http://www.onetek.net">
    <img class="footer" src="openscaLogo.png" height="31" alt="openSCA"/></a>
    </li>
  </ul>
</div>
</body>
</html>
